package interview.coding.string;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;

public class StringMain {
	private static final Logger logger = Logger.getLogger(StringMain.class);
	
	public static void main(String[] args) {
		StringManipulation stringManipulation = new StringManipulationImpl();
		BasicConfigurator.configure();
		
		//TODO: use Apache commons stuff
		//System.out.println(stringManipulation.removeString("goodbye", "oe"));
		/*
		System.out.println(stringManipulation.findFirstNonRepeatedChar("tearta"));
		System.out.println(stringManipulation.findFirstNonRepeatedChar("abcdedf"));
		System.out.println(stringManipulation.findFirstNonRepeatedChar("ttttttt"));
		*/
		
		//logger.info(stringManipulation.revertString("have a good day"));
		logger.info(stringManipulation.revertStringWord("have a good day"));
	}

}
